<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="renderer" content="webkit">
        <title>高招-招生计划</title>
        <meta name="description" content="">
        <meta name="keywords" content="">
        <link rel="stylesheet" href="__PUBLIC__/Teachers/css/reset.css">
        <link rel="stylesheet" href="__PUBLIC__/Teachers/css/admin.css">
        <script src="__PUBLIC__/Teachers/js/jquery-1.11.1.min.js"></script>
        <script src="__PUBLIC__/Teachers/js/admin.js"></script>
    </head>
    <body>
        <input type="hidden" id="deleteUrl"  value="{:U('Teachers/Ask/deleteask')}"/>
        <input type="hidden" id="editorUrl" value="{:U('Teachers/Ask/updateask')}"/>
        <div class="content">
            <div class="tab-menu">
                <ul>
                    <li class="actived"><a href="{$url_adk}">已回答</a></li>
                    <li ><a href="{$url_not}">未解答</a></li>
                </ul>
            </div>
            <div class="tab-content">
                <div class="ques tab-item actived">
                    <table class="m-table">
                        <thead>
                            <tr>
                                <th class="cola">序号</th>
                                <th>表题</th>
                                <th class="colb">提问者</th>
                                <th class="colc">表布时间</th>
                            </tr>
                        </thead>
                        <tbody class="m-table-row">
                        <volist name="ask_dataa" id="vo" key="k">
                            <tr>
                                <td>
                                    <input type="hidden" name="ask_id" value="{$vo.ask_id}"/>
                                    <input type="hidden" name="title" value="{$vo.title}"/>
                                    <input type="hidden" name="reply" value="{$vo.reply}"/>
                                    {$k}</td>
                                <td style='border-left: 1px solid #DDDDDD'>
                                    <p>
                                        {$vo.title|mb_substr=0,20,'utf-8'}
                                        <a href="#" class="delete">删除提问</a>
                                    </p>
                                    <p>
                                        <span class="bule">老师回复：</span>
                                        {$vo.reply}
                                        <a href="#" class="answer">修改答案</a>
                                    </p>
                                </td>
                                <td class="f12" style='border-left: 1px solid #DDDDDD'>{$vo.user_name}</td>
                                <td class="f12" style='border-left: 1px solid #DDDDDD'>{$vo.timeadd|date="Y-m-d",###}</td>
                            </tr>
                        </volist>
                        </tbody>
                    </table> 
                    <div class="pagination clearfix">
                        <ul class="clearfix">
                            {$page}
                        </ul>
                        <form action="__URL__/index" method="get"><span class="page-jump">跳转到 <input type="text" name="p"> 页 <input type="submit" value="确定"></span></form>
                    </div> 
                </div>
            </div>
        </div>
        <div id="modal">
            <div class="modal-overlay"></div>
            <div class="modal-box" id="modal-department">
                <form action="__CONTROLLER__/updateask" method="post" name="" id="form-add">
                    <input type="hidden" id="ask_id" name="ask_id" value=""/>
                    <input type="hidden" id="grade" name="grade" value="{$grade}"/>
                    <article>
                        <div class="formitm clearfix">
                            <label class="lab">问题：</label>
                            <div class="ipt">
                                <p id="question-content" style="line-height: 25px;width: 400px;"></p> 
                            </div>
                        </div>
                        <div class="formitm clearfix">
                            <label class="lab">答案：</label>
                            <div class="ipt">
                                <textarea name="reply" id="answer-content" ></textarea>
                            </div>
                        </div>
                        <div class="formitm clearfix">
                            <div class="lybtns">
                                <input type="submit" value="保存" class="u-btn btn-yes">
                                <button type="button" class="u-btn btn-cancel">取消</button>
                            </div>
                        </div>
                    </article>
                </form>
            </div>
        </div>
        <script>
            moduleQuestion();
        </script>
    </body>
</html>